home *** CD-ROM | disk | FTP | other *** search
/ CD Actual: Windows XP / CDWindowsXP.iso / Datos / Visio / flash / visio10_ui.swf / scripts / DefineButton2_517 / BUTTONCONDACTION on(keyPress Tab).as
Encoding:
Text File  |  2001-03-22  |  3.1 KB  |  137 lines

  1. on(keyPress "<Tab>"){
  2.    if(tabCount == 0)
  3.    {
  4.       _root.Exit.gotoAndStop("exitOut");
  5.       Selection.setFocus(_root.mainMenu);
  6.    }
  7.    else if(tabCount == 1)
  8.    {
  9.       Selection.setFocus(_root.VisioVisit);
  10.    }
  11.    else if(tabCount == 2)
  12.    {
  13.       _root.VisioVisit.gotoAndStop("visitOut");
  14.       Selection.setFocus(_root.per02);
  15.    }
  16.    else if(tabCount == 3)
  17.    {
  18.       Selection.setFocus(_root.per03);
  19.    }
  20.    else if(tabCount == 4)
  21.    {
  22.       Selection.setFocus(_root.per04);
  23.    }
  24.    else if(tabCount == 5)
  25.    {
  26.       Selection.setFocus(_root.per05);
  27.    }
  28.    else if(tabCount == 6)
  29.    {
  30.       Selection.setFocus(_root.per06);
  31.    }
  32.    else if(tabCount == 7)
  33.    {
  34.       Selection.setFocus(_root.per07);
  35.    }
  36.    else if(tabCount == 8)
  37.    {
  38.       Selection.setFocus(_root.per08);
  39.    }
  40.    else if(tabCount == 9)
  41.    {
  42.       Selection.setFocus(_root.per09);
  43.    }
  44.    else if(tabCount == 10)
  45.    {
  46.       Selection.setFocus(_root.per10);
  47.    }
  48.    else if(tabCount == 11)
  49.    {
  50.       Selection.setFocus(_root.per11);
  51.    }
  52.    else if(tabCount == 12)
  53.    {
  54.       Selection.setFocus(_root.per12);
  55.    }
  56.    else if(tabCount == 13)
  57.    {
  58.       Selection.setFocus(_root.per13);
  59.    }
  60.    else if(tabCount == 14)
  61.    {
  62.       Selection.setFocus(_root.per14);
  63.    }
  64.    else if(tabCount == 15)
  65.    {
  66.       Selection.setFocus(_root.per15);
  67.    }
  68.    else if(tabCount == 16)
  69.    {
  70.       if(_root.per11.per11Clicked != 1)
  71.       {
  72.          _root.per11.gotoAndStop("perOut11");
  73.       }
  74.       else if(_root.per11.per15Clicked == 1)
  75.       {
  76.          _root.per11.gotoAndStop("perClick11");
  77.       }
  78.       if(_root.per11.per11Clicked != 1)
  79.       {
  80.          _root.per11.gotoAndStop("perOut11");
  81.       }
  82.       else if(_root.per11.per15Clicked == 1)
  83.       {
  84.          _root.per11.gotoAndStop("perClick11");
  85.       }
  86.       if(_root.per12.per12Clicked != 1)
  87.       {
  88.          _root.per12.gotoAndStop("perOut12");
  89.       }
  90.       else if(_root.per12.per15Clicked == 1)
  91.       {
  92.          _root.per12.gotoAndStop("perClick12");
  93.       }
  94.       if(_root.per13.per13Clicked != 1)
  95.       {
  96.          _root.per13.gotoAndStop("perOut13");
  97.       }
  98.       else if(_root.per13.per15Clicked == 1)
  99.       {
  100.          _root.per13.gotoAndStop("perClick13");
  101.       }
  102.       if(_root.per14.per15Clicked != 1)
  103.       {
  104.          _root.per14.gotoAndStop("perOut14");
  105.       }
  106.       else if(_root.per14.per15Clicked == 1)
  107.       {
  108.          _root.per14.gotoAndStop("perClick14");
  109.       }
  110.       if(_root.per15.per15Clicked != 1)
  111.       {
  112.          _root.per15.gotoAndStop("perOut15");
  113.       }
  114.       else if(_root.per15.per15Clicked == 1)
  115.       {
  116.          _root.per15.gotoAndStop("perClick15");
  117.       }
  118.       Selection.setFocus(_root.playSel);
  119.    }
  120.    else if(tabCount == 17)
  121.    {
  122.       _root.playSel.gotoAndStop("playSelOut");
  123.       Selection.setFocus(_root.Reset);
  124.    }
  125.    else if(tabCount == 18)
  126.    {
  127.       _root.Reset.gotoAndStop("resetOut");
  128.       Selection.setFocus(_root.back02);
  129.    }
  130.    else if(tabCount == 19)
  131.    {
  132.       _root.back02.gotoAndStop("backOut02");
  133.       Selection.setFocus(_root.Exit);
  134.    }
  135.    tabCount = (tabCount + 1) % 21;
  136. }
  137.